package xyz.sicau.blog.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.context.annotation.Scope;
import org.springframework.context.annotation.ScopedProxyMode;
import org.springframework.stereotype.Component;

import java.io.Serializable;

@Scope(value = "session", proxyMode = ScopedProxyMode.TARGET_CLASS)
@Component
@NoArgsConstructor
@AllArgsConstructor
@Data
public class Session implements Serializable {
    private static final long serialVersionUID = 9120765714832970813L;
    private String username;
    private String checkCode;
}
